package com.ccb.jyzx.expand.tiantouonline.service.impl;

import com.ccb.jyzx.expand.tiantouonline.bean.BatchInfo;
import com.ccb.jyzx.expand.tiantouonline.bean.FileInfo;
import com.ccb.jyzx.expand.tiantouonline.bean.vo.FileInfoVo;
import com.ccb.jyzx.expand.tiantouonline.dao.BatchInfoDao;
import com.ccb.jyzx.expand.tiantouonline.service.BatchInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author XIEFEI
 * @date 2019-11-21 17:18
 * @Description
 **/
@Service
public class BatchInfoServiceImpl implements BatchInfoService {
    @Autowired
    BatchInfoDao batchInfoDao;

    @Override
    public void save(BatchInfo batchInfo) {
        batchInfoDao.save(batchInfo);
    }
    @Override
    public List<FileInfoVo> listNoPush(){
        return batchInfoDao.listNoPush();
    }

    @Override
    public void updateSendStateById(BatchInfo batchInfo) {
        batchInfoDao.updateSendStateById(batchInfo);
    }

    @Override
    public List<BatchInfo> findAll() {
        return batchInfoDao.findAll();
    }

    @Override
    public List<FileInfoVo> listCoverPush() {
        return batchInfoDao.listCoverPush();
    }

    @Override
    public void updateSendStateByids(List<String> ids) {
        batchInfoDao.updateSendStateByIds(ids);
    }
}
